// cover some element-ui styles

// 增加按钮large尺寸和原来medium 一致
.el-button--large {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 4px;
}
// 默认尺寸过大，和small一致
.reset {
  .el-button--mini:not(.is-circle) {
    padding: 7px 4px;
  }
  .el-button--medium:not(.is-circle),
  .el-button--small:not(.is-circle) {
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 3px;
  }
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type='file'] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--text {
    padding-right: 0;
    padding-left: 0;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse > div > .el-submenu > .el-submenu__title .el-submenu__icon-arrow {
  display: none;
}

.el-notification__content {
  margin: 0;
}

.el-dialog__body {
  padding: 20px;
}

.el-date-editor.el-input,.el-input-number {
  max-width: 100%;
}

// 上传相关
.el-upload-list {
  line-height: 1;
}
.el-upload__tip {
  line-height: 1.2;
}
.el-upload.el-upload--picture-card {
  line-height: 120px;
}
.el-upload.el-upload--picture-card,.el-upload-list--picture-card .el-upload-list__item {
  width: 120px;
  height: 120px;
}

// input计数器
.el-input-number.text-left .el-input__inner{
  text-align: left;
}
.el-input-number.text-right .el-input__inner{
  text-align: right;
}

.dialog-xs, .dialog-sm, .dialog-md, .dialog-lg, .dialog-xl {
  .el-drawer__header {
    padding-bottom: 20px;
    margin-bottom: 0;
  }
  .el-drawer__body {
    padding: 10px 20px 20px 20px;
  }
}
